home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1599 / 1284 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.4 KB

  1. From: Julian Reschke <reschke@GOEDEL.UNI-MUENSTER.DE>
  2. Subject: fsinfo
  3. Date: Fri, 22 Apr 94 10:31:09 MET DST
  4.  
  5. Proposal for Dcntl call to inquire information about file systems:
  6.  
  7. struct fsdesc
  8. {
  9.     char    shortname[8];    /* like 'Minix-FS' or 'Proc-FS' */
  10.     char    longname[40];
  11.     char    copyright[40];
  12.     int    version;    /* 0x0231 == '2.31' */
  13. };
  14.  
  15. For 'shortname', there should be a list of assigned names so that
  16. specialized tools (like minit) can be sure that they have the right fs.
  17.  
  18. In addition, there should be some flags specifying what the FS is
  19. capable of (different timestamps, returns 'right' inodes) -- or should this
  20. go into new Dpathconf opcodes?
  21.  
  22. Dcntl:
  23.  
  24. #define FS_INFO    0xf005        /* get fs information */
  25.  
  26. struct fsinfo
  27. {
  28.     int    length;        /* length of next string field */
  29.     char    *nextfs;
  30.     struct fsdesc fsd;    /* above */
  31. };
  32.  
  33. This Dcntl would get information about the filesystem beloging to the path
  34. argument. If there are more file systems below this directory (Minix FS
  35. mounts), the name of the next' moint point (in the fs's internal list)
  36. is placed into 'nextfs', if 'length' is big enough (otherwise -> ERANGE).
  37. As a special case, length == 0 should be allowed (I'm not interested in
  38. further mount points).
  39.  
  40. -- 
  41. ---------------------------------------------------
  42. Julian F. Reschke, Hensenstr. 142, D-48161 Muenster
  43.  eMail: reschke@math.uni-muenster.de jr@ms.maus.de
  44. ___________________________________________________
  45.